


const state = () => ({
  orderIndex: 1,
  sendInfo:{}
})

// getters
const getters = {
  orderIndex(state) {
    return state.orderIndex
  }
}

// mutations
const mutations = {
  changeIndex(state, flag) {
    state.orderIndex = flag
  },
  changeSendInfo (state,obj){
         if(obj.orderNo&&obj.userId){
          state.sendInfo = obj
         }
  }
}

// actions
const actions = {

}

export default {
  namespaced: true,
  state,
  actions,
  getters,
  mutations
}
